#!/bin/bash

#SBATCH --job-name=whl
#SBATCH --partition=gpu8
#SBATCH --mail-type=end
#SBATCH --output=hmc_test.out
#SBATCH --error=hmc_test.err
#SBATCH --nodes=1
#SBATCH -n 1
#SBATCH --cpus-per-task=4
##SBATCH --time=2:00:00
##SBATCH --nodelist= 
#SBATCH --gres=gpu:1

run_dir=/beegfs/home/qcd16/Hongliang_Wei/generate_config
exe_dir=/beegfs/home/sunp/chroma-llvm-gcc5.5-cuda10.1/install/sm_70_omp/chroma-double/bin
export QUDA_RESOURCE_PATH=$run_dir/tmp
ngpus=1
mpirun -x QUDA_RESOURCE_PATH -n ${ngpus} $exe_dir/purgaug -geom 1 1 1 1 -i $run_dir/purgaug.ini.xml -o $run_dir/purgauge.out.xml > $run_dir/purgaug.log 2>&1 
